package com.learning.netease.distributed.lock.zk.base;


import com.learning.netease.distributed.lock.zk.OrderCodeGenerator;
import com.learning.netease.distributed.lock.zk.OrderService;

/**
 * ClassName: OrderServiceImpl
 * Description:
 * Date: 2019/3/20 13:24 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class OrderServiceImpl implements OrderService {

    private OrderCodeGenerator generator = new OrderCodeGenerator();


    @Override
    public void createOrder() {
        String orderCode = generator.getOrderCode();
        System.out.println(Thread.currentThread().getName() + " ***************** >" + orderCode);

        // 其他业务处理 ... ...
    }
}
